const defaultStore={
    inputValue:'s',
    list:['888','999','eee']
}

export default (state = defaultStore ,action)=>{
    const newState = JSON.parse(JSON.stringify(state))
    switch(action.type){
        case 'inputChang':
            newState.inputValue = action.value
            return newState
        break;
        case 'addList':
            newState.list.push(state.inputValue)
            newState.inputValue  = ' '
            return newState
    }
    return state
}